#include <string>
#include <map>
#include <iostream>

int main() {
    std::string str = "1253415245";
    std::map<char, int> counts;
    for (const char &s: str) {
        counts[s] += 1;
    }

    for (const auto &[key, val]: counts) {
        std::cout << key << ":" << val << std::endl;
    }
    return 0;
}